﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PaperInfoSearchWindow.ascx.cs" Inherits="ExaminationSys.View.Paper.PaperInfoSearchWindow" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<ext:Window 
    ID="PaperInfoSearch" 
    runat="server" 
    Icon="Group" 
    Title="试卷高级查询"
    Width="530" 
    Height="380" 
    AutoShow="false" 
    Modal="true" 
    Hidden="true"
    Layout="Fit">
    <Items>       
                <ext:FormPanel 
                    ID="PaperInfoSearchPanel" 
                    runat="server" 
                    Icon="ChartOrganisation"
                    DefaultAnchor="95%"
                    Padding="5"
                    BodyPadding="10">
                    <Items>
                        <ext:TextField ID="PaperInfoTitle" Name="Title" runat="server" FieldLabel="标题" /> 
                       <ext:ComboBox ID="SectionID" AllowBlank="false" runat="server" FieldLabel="栏目" EmptyText="">
                            <Items>
                                <ext:ListItem Text="学习栏目" Value="1" />  
                                <ext:ListItem Text="听说栏目" Value="4" />
                            </Items>
                        </ext:ComboBox>
                        <ext:RadioGroup 
                            ID="RadioGroupPub" 
                            runat="server" 
                            FieldLabel="阶段"                             
                            Padding="2"
                            >
                            <Items>
                                <ext:Radio ID="RadioAll" runat="server" BoxLabel="全部" Checked="true" />
                                <ext:Radio ID="RadioHeight" runat="server" BoxLabel="高级"  />
                                <ext:Radio ID="RadioMiddle" runat="server" BoxLabel="中级" />
                                <ext:Radio ID="RadioOriginal" runat="server" BoxLabel="初级" />
                            </Items>
                        </ext:RadioGroup>   
                        <ext:CheckboxGroup ID="checkGroup" runat="server" FieldLabel="难度" Padding="2" >
                           <Items>
                              <ext:Checkbox ID="DegreeCheckAll" runat="server" BoxLabel="全部" Checked="true"></ext:Checkbox>
                              <ext:Checkbox ID="DegreeCheckHight" runat="server" BoxLabel="高"></ext:Checkbox>
                              <ext:Checkbox ID="DegreeCheckMiddle" runat="server" BoxLabel="中"></ext:Checkbox>
                              <ext:Checkbox ID="DegreeCheckLow" runat="server" BoxLabel="低"></ext:Checkbox>
                           </Items>
                        </ext:CheckboxGroup>
                        <ext:RadioGroup 
                            ID="RadType" 
                            runat="server" 
                            FieldLabel="类型"
                            Margin="0"
                            Padding="0"> 
                            <Items>
                                <ext:Radio ID="RadTypeAll" runat="server" BoxLabel="全部" Padding="0" Checked="true" />
                                <ext:Radio ID="RadTypeFixied" runat="server"  Padding="0"  BoxLabel="固定"/>
                                <ext:Radio ID="RadTypeAuto" runat="server"  Padding="0"  BoxLabel="自动" />
                            </Items>
                        </ext:RadioGroup>   
                        <ext:TextField ID="Description" Name="Title" runat="server" FieldLabel="备注" /> 
                    </Items>
                </ext:FormPanel>
    </Items>
    <Buttons>
        <ext:Button ID="SearchButton" runat="server" Text="查询" Icon="Find">
            <DirectEvents>
                <Click OnEvent="SearchPaperInfo" Failure="Ext.MessageBox.alert('process failed', 'Error during ajax event');">
                </Click>
            </DirectEvents>
            
        </ext:Button>
        <ext:Button ID="CancelButton" runat="server" Text="取消" Icon="Cancel">
            <Listeners>
                 <Click Handler="#{PaperInfoSearch}.hide(null);" />
            </Listeners>
        </ext:Button>
    </Buttons>
</ext:Window>